package com.youxin.cpcenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.youxin.busfoundation.bean.phone.QueryPhoneLatestTime;
import com.youxin.busfoundation.bean.phone.ResponseBillsBean;
import com.youxin.cpcenter.model.TbEntOrderMiddlePhoneRecord;

@Mapper
public interface TbEntOrderMiddlePhoneRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TbEntOrderMiddlePhoneRecord record);

    int insertSelective(TbEntOrderMiddlePhoneRecord record);

    TbEntOrderMiddlePhoneRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbEntOrderMiddlePhoneRecord record);

    int updateByPrimaryKey(TbEntOrderMiddlePhoneRecord record);
    
    List<TbEntOrderMiddlePhoneRecord> selectBySubid(String subid);
    
    ResponseBillsBean selectBySubidSum(String subid);
    
    List<TbEntOrderMiddlePhoneRecord> selectLatestTimeByPhone(QueryPhoneLatestTime bean);
}